import { ArticletEntity } from './article.entity';
import { DateTransformer } from './../utils/dateTransformer';
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne } from 'typeorm';
import { Type } from 'class-transformer';

@Entity('article_thumbs')
export class ArticleThumbsEntity {

    @Type(() => String)
    @PrimaryGeneratedColumn({ type: 'bigint' })
    id: string

    @Column({ comment: '点赞人id', type: 'bigint' })
    uid: string;

    @Column({ comment: '文章id', type: 'bigint' })
    articleId: string;

   
}  